﻿using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Faust.Andrew.MTG.Player.Shared
{
    /// <summary>
    /// The Poll are actions sent from the server to the target of the action. These represent something the client software needs to update to notify the user of the action.
    /// </summary>
    /// <remarks>
    /// All actions will be sent to the recipients in the order they are sent to the server. 
    /// An action can have multiple targets.
    /// </remarks>
    [DataContract]
    public abstract class Action
    {
        /// <summary>
        /// Player performing the action
        /// </summary>
        [DataMember]
        public int PlayerID { get; set; }

        /// <summary>
        /// Whether this action originates from the System or a User
        /// </summary>
        [DataMember]
        public bool IsSystemGenerated { get; set; }
    }
}
